package com.bpz.jxw.article.dao;

import com.bpz.jxw.article.model.Article;
import com.bpz.main.dao.IBaseDao;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * Created by 半瓶子 on 2/4/15.
 * blog: xusir.cnblogs.com
 */
@Repository
public interface ArticleDao extends IBaseDao<Article> {

    void voteTo(Map<String,Integer> map);

    /**
     * 获得上下两条和当前条记录
     * @param id
     * @return
     */
    List<Article> getNextAndPrev(int id);
}
